package cn.gailvlun.gll.presentation.hotel.drawer

import android.content.Context
import cn.gailvlun.gll.R
import cn.gailvlun.gll.net.hotel.InsomniaHotel
import com.github.markzhai.recyclerview.SingleTypeAdapter


class HotelAudioShareAdapter : SingleTypeAdapter<InsomniaHotel> {
    constructor(context: Context?) : super(context, R.layout.item_hotel_audio_share_wrapper)

    fun getLastId() = mCollection.last().id

    fun deleteItem(item: InsomniaHotel) = remove(mCollection.indexOf(item))
}